package com.wyw.hemerocallis.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 消息传递对象：SpringCloud Stream + Kafka/RocketMQ
 *
 * @author Mr Wu    yewen.wu.china@gmail.com
 * <p>
 * Update History:
 * Author        Time            Content
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class WywMessage {
    private Integer id;
    private String projectName;
    private String org;
    private String author;
    private String version;

    /**
     * 返回一个默认的消息，方便使用
     */
    public static WywMessage defaultMessage() {
        return new WywMessage(1,
                "hemerocallis-stream-client",
                "wyw",
                "wyw",
                "1.0");
    }

}
